var mongoose = require('mongoose');
var deptSchema = mongoose.Schema({
        "deptName" : String,
        "userId" : String,
        "userName" : String,
        "userEmail" : String,
        "parentId" : [],
        "updateTime" : {
            type: Date,
            default: Date.now()
        },//更新时间
        "createTime" : {
            type: Date,
            default: Date.now()
        },//创建时间,
        "children": []
})


module.exports = mongoose.model("dept",deptSchema)
